﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ELearningSystem.UI
{
    public partial class ErrorPage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string error = "";
            if (Request.QueryString.Count == 0)
            {
                error = null;
            }
            else
            {
                error = Request.QueryString[0];
            }


            if (error == null)
            {
                error = "An unknown Error Has been occured";
            }

            this.erroLabel.Text = error;
        }
    }
}